package com.bw.service;

import com.bw.bean.Lei;
import com.bw.bean.Ying;
import com.bw.mapper.YingMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @program: maven_ZK_xinshengil
 * @description
 * @author: Nick.Xin
 * @create: 2020-09-14 09:11
 **/
@Service
public class YingServiceImpl implements YingService{
    @Resource
    private YingMapper yingMapper;
    @Override
    public List<Ying> findAllY(Map map) {
        return yingMapper.findAllY(map);
    }

    @Override
    public List<Lei> leis() {
        return yingMapper.leis();
    }

    @Override
    public void addYing(Ying y) {
        yingMapper.addYing(y);
    }

    @Override
    public void addYlei(Integer yid, Integer lid) {
        yingMapper.addYlei(yid,lid);
    }

    @Override
    public void delYing(Integer[] ids) {
        yingMapper.delYing(ids);
    }

    @Override
    public void delYlei(Integer[] ids) {
        yingMapper.delYlei(ids);
    }

    @Override
    public Ying findYingById(Integer yid) {
        return yingMapper.findYingById(yid);
    }

    @Override
    public void updYing(Ying ying) {
        yingMapper.updYing(ying);
    }
}
